const mongoose = require('mongoose')

const errorSchema = new mongoose.Schema({
    errorAnswer: String,
    exerciseId: {
        type: mongoose.SchemaTypes.ObjectId,
        ref: 'exerciseModel'
    },
    studentId: {
        type: mongoose.SchemaTypes.ObjectId,
        ref: 'studentModel'
    }
})

mongoose.model('errorModel',errorSchema,'errors');
module.exports.errorModel = 'errorModel';